package com.skyeyemonitoring;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.skyeyemonitoring.activitys.LoginActivity;
import com.skyeyemonitoring.base.BaseActivity;

public class MainActivity extends BaseActivity implements View.OnClickListener {


    /**
     * 远程功能
     */
    private Button mBtnRemoteFunction;
    /**
     * 远程功能
     */
    private Button mBtnLocalityFunction;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
        String str = "B82E242EB81B49F163057378A0DB3EEC";
    }

    private void initView() {

        mBtnRemoteFunction = (Button) findViewById(R.id.btn_remote_function);
        mBtnRemoteFunction.setOnClickListener(this);
        mBtnLocalityFunction = (Button) findViewById(R.id.btn_locality_function);
        mBtnLocalityFunction.setOnClickListener(this);
    }


    @Override
    public void onClick(View v) {
        Intent goLogin = new Intent(this, LoginActivity.class);
        switch (v.getId()) {
            case R.id.btn_remote_function:
                goLogin.putExtra("goToTag", "remote");
                break;
            case R.id.btn_locality_function:
                goLogin.putExtra("goToTag", "locality");
                break;

        }
        startActivity(goLogin);
    }


}
